package cn.iocoder.yudao.module.pay.bill.vo;

import cn.iocoder.yudao.framework.common.pojo.PageParam;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDateTime;

import static cn.iocoder.yudao.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;

@Schema(description = "管理后台 - 账单分页 Request VO")
@Data
public class PayBillPageReqVO extends PageParam {

    @Schema(description = "用户id", example = "9419")
    private Long userId;

    @Schema(description = "关联id", example = "18439")
    private String relateId;

    @Schema(description = "模式：0-支出、1-收入")
    private Integer mode;

    @Schema(description = "账单标题")
    private String title;

    @Schema(description = "资产种类", example = "money")
    private String category;

    @Schema(description = "明细类型", example = "pay_product")
    private String type;

    @Schema(description = "添加时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime[] createTime;

}
